<?php if(validation_errors()|$this->session->userdata('loidn')){       
   echo ' 
     <ul data-role="listview" data-inset="true">    
            <li data-role="list-divider">Messenger<span class="ui-li-count">1</span></li>
            <li><a href="'.base_url().'user/register">        
                <p>'.form_error('groupid').'</p>                 
                <p>'.$this->session->userdata('loidn').'</p>                
            </a></li>
        </ul>
     
     
     ';
     $this->session->unset_userdata('loidn');  
} ?>
 
<form method="post" action="<?=base_url();?>mobile/login" data-ajax="false" >      
      <input type="text" name="groupid" id="fname" placeholder="Idgroup..."/>
      <input type="submit" data-inline="true" value="Submit"/>
</form>